package com.bjpowernode.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.bjpowernode.entity.PmsProduct;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.math.BigDecimal;

/**
 * <p>
 * 商品表 服务类
 * </p>
 *
 * @author zs
 * @since 2024-06-25
 */
public interface PmsProductService extends IService<PmsProduct> {
    Boolean save(String name, BigDecimal price, String brandId, String[] categoryId, MultipartFile[] files, String[] spu, String[] sku, String description, String[] skuArray) throws IOException;

    IPage list(Integer pageNo,Integer pageSize);

    Boolean changeStatus(String id, Boolean isPublish);

    Boolean updateBase(String id, String name, BigDecimal price, String brandId);

    Boolean updateSpu(String id, String[] spu);

    Boolean updateAlbum(String id, String[] names, MultipartFile[] files) throws IOException;

    Boolean updateDescription(String id, String description);
}
